package dataFromXml;

import org.dom4j.Element;

public class AttrConstraint {

	Element aNode;
	String constraintAttrName;
	String constraintAttrExpression;
	
	public AttrConstraint(Element self) {
		aNode = self;
		constraintAttrName = null;
		constraintAttrExpression = null;
	}
	
	public AttrConstraint(String can, String cae) {
		constraintAttrName = can;
		constraintAttrExpression = cae;
	}
	
	public void setConstraintAttrName(String can) {
		constraintAttrName = can;
	}
	
	public void setConstraintAttrExpression(String cae) {
		constraintAttrExpression = cae;
	}
	
	public String getConstraintAttrName() {
		return constraintAttrName;
	}
	
	public String getConstraintAttrExpression() {
		return constraintAttrExpression;
	}
	
	public Element getElement() {
		return aNode;
	}
}
